﻿<UserControl x:Class="Acando.Dynamics.CRM.Silverlight.Library.Dialogs.LookupDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:Acando.Dynamics.CRM.Silverlight.Library.Controls"
             MinWidth="340" 
             MinHeight="300" 
             IsEnabled="False"
             Grid.ColumnSpan="2" >
    <Grid x:Name="LayoutRoot" Canvas.ZIndex="40">
        <Rectangle Name="pnlBackground" 
                   HorizontalAlignment="Stretch" 
                   VerticalAlignment="Stretch" 
                   Fill="White" 
                   Canvas.ZIndex="1"
                   Opacity="0.4" 
                   Visibility="Visible"/>
            <StackPanel Background="AliceBlue" 
                        VerticalAlignment="Center" 
                        HorizontalAlignment="Center"
                        Canvas.ZIndex="2">
            <StackPanel x:Name="searchSPannel" Orientation="Horizontal">
                
                    <ComboBox x:Name="cmbPossibleTypes" 
                          Width="150"
                          Margin="5"/>
               
                <TextBox x:Name="txSearchBy" Width="120" Margin="10,5,5,5"/>
                <Button x:Name="btnSeach" HorizontalAlignment="Left" Content="Search" Margin="5"/>
            </StackPanel>
            <ListBox x:Name="listItems" Height="300" Width="340"/>
            
                <StackPanel Orientation="Horizontal">
                    <Button x:Name="btnSelectFromList" 
                            Content="Select"
                            Click="btnSelectFromList_Click" 
                            Margin="4"/>
                            
                    
                    <Button x:Name="btnCancelSelection"
                            Content="Cancel"
                            Click="btnCancelSelection_Click"
                            Margin="4"/>
                        
                    
                    <Button x:Name="btnRemoveValue" 
                            Content="Remove"
                            Click="btnRemoveValue_Click"
                            Margin="4"/>
                        
                </StackPanel>
            </StackPanel>  
        <local:LoadingPanelControl x:Name="pnlLoading" Canvas.ZIndex="15" Visibility="Collapsed"/>
    </Grid>
</UserControl>
